package com.example.cinema.mapper;

import com.example.cinema.entity.Orders;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yc138
 * @since 2024-08-26
 */
public interface OrderMapper extends BaseMapper<Orders> {

    @Select("select * from orders where sid = #{stu_id}")
    public List<Orders> findByStu_id(@Param("stu_id") int stu_id);

}
